#encoding:utf8 

from handlers.gamefunc import * 
from handlers.configs import * 
from baseEntity import baseEntity

class Player(baseEntity):

	def __init__(self , userdata):
		self._data = userdata
		self._inscene = None
		self.x = 0
		self.y = 0


	def addto_scene(scene):
		ret = scene.add_player(self)
		if ret == 0:
			self._inscene = scene

	def move(self , x, y):	
		self.x = x 
		self.y = y 

	def get_inscene():
		return self._inscene
	